package com.hqyj.javaSpringBoot.modules.test.service;

import com.hqyj.javaSpringBoot.modules.common.entity.Result;
import com.hqyj.javaSpringBoot.modules.common.entity.SearchBean;
import com.hqyj.javaSpringBoot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author ：Cwd
 * @Description：StudentService
 * @date ：2021/8/20 14:42
 */
public interface StudentService {

    Result<Student> insertStudent(Student student);

    Result<Student> editStudent(Student student);

    Result<Object> deleteStudentById(int id);

    Student getStudentById(int id);

    List<Student> getStudents();

    Student getStudentByNameAndEmail(String name,String email);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    Result<Object> insertStudents(List<Student> students);
}
